package com.hope.bubble.controller;

import com.hope.bubble.common.api.ApiResult;
import com.hope.bubble.model.entity.BubblePromotion;
import com.hope.bubble.service.IBubblePromotionService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 文件名：BubblePromotionController
 * 创建者：hope
 * 邮箱：1602774287@qq.com
 * 微信：hope4cc
 * 创建时间：2022/10/21-19:47
 * 描述：友链
 */
@RestController
@RequestMapping("/promotion")
public class BubblePromotionController extends BaseController{
    @Resource
    private IBubblePromotionService BubblePromotionService;

    @GetMapping("/all")
    public ApiResult<List<BubblePromotion>> list() {
        List<BubblePromotion> list = BubblePromotionService.list();
        return ApiResult.success(list);
    }

}
